<?php
session_start();
include("lang.php");
function page($name){
    include("./pages/".$name.".php");
}

function convertTime($timestamp){
    $date=array();
    $date['hour']=strftime("%H:%M",$timestamp);
    $date['date']=strftime("%e/%m/%Y",$timestamp);
    $jour=strftime("%e",$timestamp);
    $mois=strftime("%m",$timestamp);
    $annee=strftime("%Y",$timestamp);
    $midnight=mktime(0,0,0,$mois,$jour,$annee);
    $date['midnight']=$midnight;
    return($date);
}

function initclass($name) {

    include_once("classes/".$name.".php");
    

}

function secform($content){
    return(mysql_real_escape_string(htmlentities($content)));
}



function redirect($url){
    ?>
        <script language="javascript" type="text/javascript">
<!--
window.location.replace("<?php echo($url); ?>");
-->
</script>
    <?php
}


?>
